package com.bw.base.net

import com.bw.base.entity.*
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
import retrofit2.http.Query

interface ApiServer {
    @POST(Const.BASE_LOG)
    suspend fun getLog(@Query("username")username:String,@Query("password")password:String):Res<UserBean>
    @GET(Const.BASE_GG)
    suspend fun getGG(@Query("page")page:Int,@Query("size")size:Int):Res<GGEntityResult>
    @POST(Const.BASE_ZC)
    suspend fun getZc(@Query("username")username: String,@Query("password")password: String):Res<ZCEntityResUlt>
    @GET(Const.BASE_NEW)
    suspend fun getNET():Res<NewEntityResult>
    @GET(Const.BASE_MESSAGE)
    suspend fun getMessage(@Query("accessId")accessId:String,@Query("userId")userId:Int):Res<MessageEntity>
    @GET(Const.BASE_CAR1)
    suspend fun getCar1(@Path("areaId")areaId:Int):Res<Car1EntityREsult>

    @GET(Const.BASE_C1)
    suspend fun getC1():Res<C1EntityResult>
    @GET(Const.BASE_ZT)
    suspend fun getZT(@Path("spaceStatus")spaceStatus:String):Res<Car1EntityREsult>
    @GET(Const.BASE_LX)
    suspend fun getLX(@Path("spaceType")spaceType:String):Res<Car1EntityREsult>
    @GET(Const.BASE_WX)
    suspend fun getWX():Res<WXEntityResult>

}